package com.itheima.controller;


import com.itheima.domain.Admin;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller("JsonController")
@RequestMapping("/jsonController")
public class JsonController {



    @RequestMapping("/responseJsonTest")
    public String responseJsonTest(
            @RequestBody Admin admin
    ) {
        System.out.println("执行了 responseJsonTest");
        System.out.println(admin);
        return "success";
    }
}
